﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.CodeBox.ConfigParser.TestCode
{
    public class Assert
    {
        public static bool AreEqual(string str1, string str2) {
            bool equal = string.Compare(str1, str2) == 0;
            if (!equal) {
                throw new Exception("Assert.AreEqual error:"
                    + "str1=" + str1
                    + "|str2=" + str2);
            }
            return equal;
        }

        public static bool AreEqual(int str1, int str2)
        {
            bool equal = str1 == str2;
            if (!equal)
            {
                throw new Exception("Assert.AreEqual error:"
                    + "str1=" + str1
                    + "|str2=" + str2);
            }
            return equal;
        }
    }
}
